@echo off

SET MY_PRJ_ROOT=
pushd .
for %%i in (1,2,3,4,5,6) do (
  if exist xdirs goto :FOUND
  cd ..
)
:Found
SET MY_PRJ_ROOT=%CD%
popd

if exist %MY_PRJ_ROOT%\devtools\pycc_tool\pycc.py (
   SET PYCC_PATH=%MY_PRJ_ROOT%\devtools\pycc_tool
) else (
   echo pycc.py not installed
   exit 4
)

%PYCC_PATH%\pycc.py %*